package net.sansi.v3correctserver.service.notification.impl;

import net.sansi.v3correctserver.service.notification.NotificationService;
import net.sansi.v3correctserver.service.websocket.updateprogress.UpdateProgressWSManager;
import org.springframework.stereotype.Service;

/**
 * Created by Fang
 * create time : 2025/2/11
 * IDE : IntelliJ IDEA
 */
@Service
public class NotificationServiceImpl implements NotificationService {
    /**
     * 通知更新进度
     *
     * @param taskId 任务ID
     */
    @Override
    public void notifyUpdateProgress(String taskId) {
        UpdateProgressWSManager.getInstance().sendMessage(taskId);
    }
}
